<?php

namespace Sharks\Core\Support\Constaints;

class ChinesePhoneRule extends Rule {

    public function __construct($value, $msg = null) {
        parent::__construct($value, $msg);
    }


    public function validate() {
        return preg_match("/^\d{11}$/", $this->value);
    }

}